package com.greatwqs.wmall.common.module.constants;

/***
 *
 * Redis key 格式：wmall::模块名::业务名::业务ID
 *
 * @author wang-qingsong
 */
public final class RedisKey {

    public static final String REDIS_KEY_PREFIX_USER_PROVIDER = "wmall::user-provider::";

    public static final String REDIS_KEY_PREFIX_PRODUCT_PROVIDER = "wmall::product-provider::";

    public static final String REDIS_KEY_PREFIX_TASK_PROVIDER = "wmall::task-provider::";

    public static final String REDIS_KEY_PREFIX_USER_PROVIDER_LOGIN_TOKEN = "wmall::user-provider::login-token::";

    public static String loginToken(String token){
        return REDIS_KEY_PREFIX_USER_PROVIDER_LOGIN_TOKEN + token;
    }
}